<?php
	include "./config/fungsi_tampilan.php";
	include "./config/koneksi.php";
	
	$NIM		= $_GET['id_penjualan'];
	$query="SELECT * FROM penjualan WHERE ID_PEN='$NIM'";
	$view= oci_parse($conn,$query);
	oci_execute($view);
	while($row=oci_fetch_array($view))
			{
				$idp	= $row['ID_PEN'];
				$idpet	= $row['ID_PET'];
				$idkon	= $row['ID_KON'];
				$idbar	= $row['ID_BAR'];
				$jml	= $row['JML'];
				$tgl	= $row['tgl'];
			}	
$content='<form method="POST" action="datapenjualan_ubah_proses.php">
			<table class="table" class="spand12" >
			<thead > 
				<td colspan="2" >
					<div style="margin:0px;align:center;font-size:20pt;margin-top:0px;margin-bottom:2px;padding-top: 4px; padding-bottom: 4px;" class="legend alert alert-info">
						<div align="center">
							FORM UBAH DATA BARANG
						</div>
					</div>
				 </td>
			</thead>
				<tr>
						<td>
							ID Penjualan
						</td>
						<td>
							<input type="hidden" name="idp VALUE="'.$_GET[''].'">
							'.$_GET['NIM'].'
						</td>
				</tr>
				<tr>
						<td>
							ID Petugas
						</td>
						<td>
							<input type="text" name="id_pet" VALUE="'.$idpet.'">
						</td>
				</tr>
				<tr>
						<td>
							ID Konsumen
						</td>
						<td>
							<input type="text" name="idkon" VALUE="'.$idkon.'">
						</td>
				</tr>
				<tr>
						<td>
							ID Barang
						</td>
						<td>
							<input type="text" name="idbar" VALUE="'.$idbar.'">
						</td>
				</tr>
				<tr>
						<td>
							Jumlah 
						</td>
						<td>
							<input type="text" name="jml" VALUE="'.$jml.'">
						</td>
				</tr>
				<tr>
						<td>
							Tanggal
						</td>
						<td>
							<input type="text" name="tgl" VALUE="'.$tgl.'">
						</td>
				</tr>
				<tr>
						<td>
							
						</td>
						<td>
							<button type="submit" class="btn btn-small btn-primary">SIMPAN</button></a>
					</td>
				</tr>
			</table>
		</form>	';
echo printPageUdate($content);
?>




